// ********************************************************************************************
// Este archivo fuente es propiedad de Feria de Remates S.R.L. de C.V. Prohibida su copia o uso
// sin autorización explícita.
// This source file is propietary to Feria de Remates S.R.L. de C.V. May not be used or copied
// without explicit authorization.
// ********************************************************************************************/

package com.feriaderemates.domain.listing;

import java.math.BigDecimal;

/**
 * Class to  match the many to many relationship between shipping and 
 * listing tables.
 *
 * @author Oscar García
 */
public class ListingShippingCarrier {
    
    private final ShippingCarrier shippingCarrier;
    private final long listingId;
    private final BigDecimal price;
    
    private ListingShippingCarrier(ShippingCarrier shippingCarrier, long listingId, BigDecimal price) {
        this.shippingCarrier = shippingCarrier;
        this.listingId = listingId;
        this.price = price;
    }
    
    public static ListingShippingCarrier createListingShippingCarriers(ShippingCarrier shippingCarrier, long listingId, BigDecimal price) {
       return new ListingShippingCarrier(shippingCarrier, listingId, price);
    }

    /**
     * @return the shippingCarriers
     */
    public ShippingCarrier getShippingCarrier() {
        return shippingCarrier;
    }

    /**
     * @return the listingId
     */
    public long getListingId() {
        return listingId;
    }

    /**
     * @return the price
     */
    public BigDecimal getPrice() {
        return price;
    }

}
